package com.ss.android.common.applog;

import com.bytedance.common.utility.b.ThreadPlus;

import java.util.LinkedList;

final class h extends ThreadPlus {
    private final g a;

    h(g arg1, String arg2) {
        super(arg2);
        this.a = arg1;
    }

    public final void run() {
        LinkedList v1;
        LinkedList v10;
        super.run();
        try {
            v10 = new LinkedList();
            v1 = g.a(this.a);
            synchronized (v1) {
                v10.addAll(g.a(this.a));
                g.a(this.a).clear();
            }
            while (!v10.isEmpty()) {
                g.a v0_1 = (g.a) v10.poll();
                AppLog.onEvent((v0_1).a, (v0_1).b, (v0_1).c, (v0_1).d, (v0_1).e, (v0_1).f, (v0_1).g);
            }
        } catch (Throwable v0) {
            v0.printStackTrace();
        }
    }
}

